package swapper.facade;
import swapper.model.command.CategoriaCommand;
import swapper.model.dao.CategoriaDao;
import java.util.List;

/**
 *
 * @author Valentino
 */
public class CategoriaFacade implements IFacade{
    private CategoriaDao categoriadao;
    private CategoriaCommand categoriacommand;
    
    public void setCategoriaDao(CategoriaDao categoriadao) {
        this.categoriadao = categoriadao;
    }
    
    
    public void setCategoriaCommand(CategoriaCommand categoriacommand)
    {
        this.categoriacommand = categoriacommand;
    }
    
        
    @Override
    public Object addNew(Object obj) {
        return categoriadao.addNew(obj);
    }

    @Override
    public void delete(Object obj) {
        categoriadao.delete(obj);
    }

    @Override
    public void update(Object obj) {
        categoriadao.update(obj);
    }

    @Override
    public List<Object> listAll() {
        return categoriadao.listAll();
    }

    @Override
    public Object findByCod(Long codigo) {
        return categoriadao.findByCod(codigo);
    }

    @Override
    public List<Object> findByName(String name) {
        return categoriadao.findByName(name);
    }
    
    
}
